﻿@{
    ViewBag.Title = "Upload";
    Layout = "~/Views/Shared/_EditLayout.cshtml";
}

@section Header{
    <script src="~/Scripts/jquery-1.10.2.min.js"></script>
    <link href="~/Controls/uploadify/uploadify.css" rel="stylesheet" />
    <script src="~/Controls/uploadify/jquery.uploadify.min.js"></script>     
    <script type="text/javascript">
        $(function () {
            $('#file_upload').uploadify({
                'buttonText': '请选择上传文件',
                'swf': '@Url.Content("~/Controls/uploadify/uploadify.swf")',
                'uploader': '/Home/Upload'
            });
        });
    </script>
}

<fieldset>
    <legend>上传控件</legend>
    <div>
        <input type="file" id="file_upload" name="file_upload" />
    </div>
</fieldset>
